package com.ews.onlineexchange.service.activitii;

import javax.enterprise.inject.Model;
import javax.inject.Inject;
import javax.persistence.EntityManager;

import com.ews.onlineexchange.model.Bulletin;
import com.ews.onlineexchange.service.BulletinService;

@Model
public class MockProcessInstanceGenerator {

	@Inject
	EntityManager	entityManager;

	@Inject
	BulletinService	bulletinService;

	String			bulletinId;

	public String mockStartBuyerAuditBestChoose() {
		Bulletin bulletin  = entityManager.find(Bulletin.class, bulletinId);
		bulletinService.startBuyerBestChooseEvaluationProcess( bulletin);
		return "ok";				
	}

	public String getBulletinId() {
		return bulletinId;
	}

	public void setBulletinId( String bulletinId ) {
		this.bulletinId = bulletinId;
	}

}
